Enhancing Sprite Animation Performance
To achieve the best performance for your sprite animation, you should observe the following guidelines when creating a sprite world.
-
When you create a graphics world to be used for your sprite world, you achieve the best performance if the graphics world's dimensions are a multiple of 16 pixels.
-
Your sprite layer graphics world and background graphics world should both be the same size and depth as the destination of your sprite animation.
-
Use translation-only matrices for creating sprite worlds and sprites.
-
Do not set a clipping region for your sprite world.
-
Call the
SpriteWorldIdle
function frequently.
-
Avoid clipping sprites with the sprite world boundary.
-
Use the Animation compressor to create sprites with transparent areas.
© 1999 Apple Computer, Inc.| Previous | Chapter Contents | Chapter Top |